package com.ruoyi.mateproduction.mapper;

import com.ruoyi.mateproduction.domain.ManageReview;
import com.ruoyi.mateproduction.domain.MateProductionPlan;
import com.ruoyi.mateproduction.domain.MateProductionPlanModel;
import com.ruoyi.mateproduction.domain.ReleaseReview;
import com.ruoyi.material.domain.MaterialProduct;
import com.ruoyi.product.domain.ProductModel;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @Author
 * @Version 1.0
 */
@Mapper
public interface MtProductionMapper {

    public int addMatePlan(MateProductionPlan mateProductionPlan);

    public int addMatePlanModel(MateProductionPlanModel mateProductionPlanModel);

    public void  deleteMatePlan(Long planId);

    public  void  deleteModelByPlanId(Long planId);

    public List<MateProductionPlan> matePlanList(MateProductionPlan mateProductionPlan);

    public MateProductionPlan selectPlan(Long planId);

    public MateProductionPlan selectLastPlan(Map<String,Object> resMap);

    public List<MateProductionPlanModel> selectPlanModels(Long planId);

    public int editPlan(MateProductionPlan mateProductionPlan);

    public int editPlanModel(MateProductionPlanModel mateProductionPlanModel);

    public List<MaterialProduct> selectProductLists(MaterialProduct materialProduct);

    public List<ProductModel> selectTableList(Map<String,Object> resMap);

    public List<ProductModel> selectProductList(Map<String,Object> resMap);

    public int addManageReview(ManageReview manageReview);

    public List<ManageReview> manageReviewList(ManageReview manageReview);

    public ManageReview selectManageReview(Long manageReviewId);

    public List<ReleaseReview> releaseList(ReleaseReview releaseReview);

    public int addReleaseReview(ReleaseReview releaseReview);

    public ReleaseReview selectReleaseReview(Long releaseId);

    List<ReleaseReview> selectReleaseReviewList(ReleaseReview releaseReview);


}
